//
//  MyCollectionViewCell.m
//  Food
//
//  Created by dlios on 15/7/15.
//  Copyright (c) 2015年 李志远. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell

- (void)dealloc
{
    [super dealloc];
    [_label release];
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.label = [[UILabel alloc] init];
        self.label.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:self.label];
        
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    self.label.frame = CGRectMake(0, 0, layoutAttributes.frame.size.width, layoutAttributes.frame.size.height);
    
}

@end
